package com.beta.resource.controllers;

import org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/")
public class AnalysisController {
    
    @GetMapping(value = { "", "/" })
    public ModelAndView editor(JwtAuthenticationToken token) {
        ModelAndView data = new ModelAndView("analysis");
        data.getModel().put("title", "Analysis");
        return data;
    }
}
